<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <body>
        <ui:composition template="./../template.xhtml">

            <ui:define name="header">
                <p:graphicImage value="/imagenes/morazan3.gif"  onclick="" height="70" width="100" rendered="true"/>
            </ui:define>
            
            <ui:define name="main_content">
                <ui:include src="/web-pages/OTROS/HELP/wfrmHelp_Login.xhtml">
                    <ui:param name="toolBarWidth" value="800"/>
                    <ui:param name="toolBarTitleWidth" value="750"/>
                    <ui:param name="title" value="Sistema Inform&aacute;tico para la Gesti&oacute;n de Institutos Nacionales"/>
                </ui:include>
                <div align="left">
                    <p:panel header="Ingresa sus credenciales de Usuario." style="width: 800px" >
                        <ui:include src="/web-pages/OTROS/wfrmMensaje.xhtml"/>
                        <h:form id="login" style="text-align: center" >
                            <div align="center">
                                <h:panelGrid id="pLogin0" columns="2">
                                    <h:panelGrid id="pLogin1">
                                        <p:graphicImage value="../resources/images/CLogin.png" width="115" rendered="false"/>
                                        <p:graphicImage id="loginImage" value="../imagenes/Login Manager.png" width="115" rendered="true"/>
                                        <p:tooltip for="loginImage" value="Login" showEffect="fade" hideEffect="fade" />
                                    </h:panelGrid>
                                    <h:panelGrid id="pLogin2" columns="3">
                                        <h:outputText value="Usuario"/> <p:inputText value="#{loginManaged.selectedLogin.user_l}" style="width: 200px" />
                                        <br/>
                                        <h:outputText value="Clave"/><p:keyboard value="#{loginManaged.selectedLogin.password_l}" password="true" style="width: 200px" />
                                    </h:panelGrid>
                                </h:panelGrid>
                            </div>
                            <div align="center">
                                <h:panelGrid id="cmdButtones" columns="2" cellpadding="5" style="width:inherit">
                                    <p:commandButton image="ui-icon ui-icon-check" value="Ingresar" actionListener="#{loginManaged.completeTransaction}" update="mensaje login" />
                                    <p:commandButton value="#{sms.limpiar}" actionListener="#{limpiarManaged.limpiar}" update="login"/>
                                </h:panelGrid>
                            </div>
                        </h:form>
                    </p:panel>
                </div>
            </ui:define>
        </ui:composition>
    </body>
</html>
